package com.foryou.wechat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by Lee.
 */
@Data
@TableName("v_place_comment")
@NoArgsConstructor
public class PlaceCommentEntity extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long placeId;
    private Long userId;
    private String content;

    public PlaceCommentEntity(Long placeId, Long userId, String content) {
        this.placeId = placeId;
        this.userId = userId;
        this.content = content;
    }
}
